<template>
  <div class="account">
      <iframe style="height:100vh" ref="iframe" :src="ifarmeSrc" frameborder="0" width="100%" scrolling="no" id="bdIframe" ></iframe>
  </div>
</template>
<script>
export default {
  data(){
      return{
          ifarmeSrc:'',
          orderList:[],
      }
  },
  created(){
    // console.log('--------------详情');
    // this.orderList = JSON.parse(sessionStorage.getItem('order'))
    // console.log( this.orderList,'eeeeeeeeeeeeeeeee2222222222222');
    this.ifarmeSrc = process.env.VUE_APP_BASE_URL_WINNER_URL + 'order/detail';
  },
  methods:{
    initIframe(){
      // let oIframeDom = document.getElementById('bdIframe');
      // const deviceHeight = document.documentElement.clientHeight;
      // oIframeDom.style.height = (Number(deviceHeight)-120) + 'px'; //数字是页面布局高度差
    },

  },
  mounted(){
      this.initIframe();
      let that = this;
      window.onresize = function(){
        that.initIframe();
      }  

     
  },
  
}
</script>
<style scoped>
  .account{
      width: 100%;
      height: auto;
  }
</style>